package hcn.protocol.ods.hospitalreport;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * 医院推送检查报告列表
 * Created by ChenJij on 2019/4/23.
 */
@XmlRootElement(name = "BSXml")
public class NotifyXmlExamReportRequest {
    private InnerMsgHeaderRequest msgHeader;
    private InnerMsgHeaderBody msgBody;


    @XmlElement(name = "MsgBody")
    public InnerMsgHeaderBody getMsgBody() {
        return msgBody;
    }

    public void setMsgBody(InnerMsgHeaderBody msgBody) {
        this.msgBody = msgBody;
    }

    @XmlElement(name = "MsgHeader")
    public InnerMsgHeaderRequest getMsgHeader() {
        return msgHeader;
    }

    public void setMsgHeader(InnerMsgHeaderRequest msgHeader) {
        this.msgHeader = msgHeader;
    }

    @XmlRootElement(name = "MsgHeader")
    public static class InnerMsgHeaderRequest {
        private String organization;
        private String sender;
        private String serviceType;
        private String msgType;
        private String msgVersion = "2.0";

        @XmlElement(name = "Organization")
        public String getOrganization() {
            return organization;
        }

        public void setOrganization(String organization) {
            this.organization = organization;
        }

        @XmlElement(name = "Sender")
        public String getSender() {
            return sender;
        }

        public void setSender(String sender) {
            this.sender = sender;
        }

        @XmlElement(name = "ServiceType")
        public String getServiceType() {
            return serviceType;
        }

        public void setServiceType(String serviceType) {
            this.serviceType = serviceType;
        }

        @XmlElement(name = "MsgType")
        public String getMsgType() {
            return msgType;
        }

        public void setMsgType(String msgType) {
            this.msgType = msgType;
        }

        @XmlElement(name = "MsgVersion")
        public String getMsgVersion() {
            return msgVersion;
        }

        public void setMsgVersion(String msgVersion) {
            this.msgVersion = msgVersion;
        }
    }

    public static class InnerMsgHeaderBody {
        private NotifyExamReportRequest notifyReportRequest;

        @XmlElement(name = "Report")
        public NotifyExamReportRequest getNotifyReportRequest() {
            return notifyReportRequest;
        }

        public void setNotifyReportRequest(NotifyExamReportRequest notifyReportRequest) {
            this.notifyReportRequest = notifyReportRequest;
        }
    }
}